package cn.wolfcode.wolf2w.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Getter
@Setter
@Document("visitor")
public class Visitor extends BaseDomain {
    private String uid; // 用户id
    private List<String> visitorId; // 访问者id集合
    private int totalView; // 总访问量
    @Transient
    private List<UserInfo> visitors; // 所用访问者信息
    @Transient
    private int todayView; // 今日访问数
}
